<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <script type="text/javascript">
    
    fetch('http://127.0.0.1:8888/api/private/v1/login', {
      method: 'post',
      body: JSON.stringify({
        username: 'admin',
        password: '123456'
      }),
      headers: {
        'Content-Type': 'application/json'
      }
    })
      .then(function(data){
        return data.text();
      }).then(function(data){
        console.log(data)
      });

  </script>
</body>
</html>